package com.ae.shield.generator;

import com.ae.shield.common.block.BlockList;
import net.minecraft.data.DataGenerator;
import net.minecraftforge.common.data.ExistingFileHelper;
import net.minecraftforge.common.data.ForgeBlockTagsProvider;

import static com.ae.shield.common.tag.ModTags.Forge.Block.*;

public class ModBlockTagsProvider extends ForgeBlockTagsProvider {
    public ModBlockTagsProvider(DataGenerator gen, ExistingFileHelper existingFileHelper) {
        super(gen, existingFileHelper);
    }

    @Override
    public void registerTags() {
        //矿石
        getOrCreateBuilder(ORES_TIN).add(BlockList.ORES_TIN.get());
        getOrCreateBuilder(ORES_LEAD).add(BlockList.ORES_LEAD.get());
        getOrCreateBuilder(ORES_ALUMINUM).add(BlockList.ORES_ALUMINUM.get());
        getOrCreateBuilder(ORES_SILVER).add(BlockList.ORES_SILVER.get());
        getOrCreateBuilder(ORES_MANGANESE).add(BlockList.ORES_MANGANESE.get());
        getOrCreateBuilder(ORES_TANTALUM).add(BlockList.ORES_TANTALUM.get());
    }
}
